package com.nxcy.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class LoginController {
    @RequestMapping("/login.do")
    public String login(HttpServletRequest request) {
        request.setAttribute("username","root");
        return "login";
    }

}
